#include "stdlib.h"
#include "string.h"
#include "stdio.h"
//复件 demo08_指针铁律


//铁律一：指针也是数据类型，它的数据类型，是指它指向的内存空间的数据类型
void main()
{
	char buf1[100] = {0};
	char buf2[100] = {0};

	char *p1 = buf1;
	char *p2 = buf2;
	strcpy(buf1,"abc");	
	while(*p1 != NULL) //while(*p1 != '\0')
	{
		*p2 = *p1;
		p1++;
		p2++;
	}

	
	printf("buf2: %s\n",buf2);
}